﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace HelloworldCSharp
{
    public class ListBox : Window
    {
        String mContents;

        public ListBox(int top, int left, String content):base(top, left)
        {
            mContents = content;
        }

        // neu khong co public o day thi no khi goi listBox.drawWindow se goi phthuc cua
        // lop cha boi vi mac dinh cua truy cap la private
        public override void drawWindow() {
            base.drawWindow();
            Console.WriteLine("mcontent {0}", mContents );
        }
    }
}
